#pragma once
#include "event_loop_thread.h"
#include "tcp_connect.h"
#include "tcp_server.h"

namespace el {

	class TcpServerTest
	{
	public:
		TcpServerTest();
		~TcpServerTest();

		bool test();
	private:
		void connect(TcpConnect* connect);
		void message(TcpConnect* connect);
		void close(TcpConnect* connect);
		void error(TcpConnect* connect, int);
	private:
		EventLoop* loop_;
		EventLoopThread loop_thread_;
		TcpServer* server_;
	};

}


